Simple use of GDBDebug the arm program using GDB + gdbserver1: simple use of GDBGDB is a powerful Unix program debugging tool released by the GNU open-source organization. Maybe you like it.Graphical interface, such as Vc, BCB, and other ide
View stack information-----
When the program is stopped, the first thing you need to do is to check where the program stops. When your programWhen a function is called, the address, parameters, and local variables in the function are pushed
GDB command Overview-------
After starting GDB, you will be brought into the debugging environment of GDB. You can use the gdb command to start debugging the program. The command of GDB can be viewed using the Help Command, as shown
Turn from: http://blog.csdn.net/haoahua/article/details/2056854
the original text is from the Chenhao column (http://blog.csdn.net/haoel/), thanks to the author for publishing such a good article.
Debug a program with GDB
Debug the program with
View stack InformationWhen the program is stopped, the first thing you need to do is to see where the program is parked. When your program calls a function, the address of the function, the function arguments, the local variables within the function
Debug the program with GDB
GDB Overview----
GDB is a powerful Unix program debugging tool released by the GNU open-source organization. Maybe you prefer the graphical interface, such as Vc, BCB, and other ideBut if you are working on a UNIX platform,
Disclaimer: The blog content refers to Mr. Chen's blog post, the original link http://blog.csdn.net/haoel/article/details/2879. Since the original blog post does not have a directory, inconvenient to query, so the original blog post is organized
GDB (GNU Debugger) is a powerful command-line debugging tool. You know the power of the command line is that it can form an execution sequence and form a script. The software under UNIX is full of command line, which gives the program development a
Previously wanted to verify some of the problems on the stack, but there is no good way, printf is really limited, flow on the surface, only the appearance (value, scope, law) do not see the real (address, register, process), so think of gdb--a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.